package com.project.util;

import java.util.Map;

public class ManUtil {
    public String findByItem(Map map){
        String sql = "select * from t_man where 1=1 ";
        if(map.get("name") != null && map.get("name").toString().length() != 0){
            sql += "and m_name like '%"+map.get("name")+"%'";
        }

        return sql;
    }
}
